package android.magical;

import android.app.Dialog;
import android.app.TimePickerDialog;
import android.app.TimePickerDialog.OnTimeSetListener;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;

public class TimePickerDialogFragment extends DialogFragment {

	private Fragment mFragment;

    public TimePickerDialogFragment(Fragment callback) {
        mFragment = callback;
    }

    public Dialog onCreateDialog(Bundle savedInstanceState) {
        return new TimePickerDialog(getActivity(), (OnTimeSetListener) mFragment, 
        		AddEventFragment.DEFAULT_HOUR, 
       		 	AddEventFragment.DEFAULT_MINUTES,
       		 	false);
    }
}